import { formatTime  } from '@/utils'
import i18n from '@/locales/index'
const { t } = i18n.global
export const columns =  [ 
  {
    title: t('other.inspectionTime'), dataIndex: 'inspectionDate', key: 'inspectionDate', align: 'center', width: 170, sorter: true, timeType: 'time',
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD HH:mm:ss')
    }
  }, 
  { title: t('deviceManage.waterLineNo'), dataIndex: 'lineNo', key: 'lineNo', align: 'center', width: 130, sorter: true },
  { title: t('hangManage.stationNo'), dataIndex: 'stationNo', key: 'stationNo', align: 'center', width: 130, sorter: true },
  { title: t('basicData.staff'), dataIndex: 'staff', key: 'staff', align: 'center', width: 130 },
  { title: t('other.inspector')+'/'+t('other.checker'), dataIndex: 'inspectionStaff', key: 'inspectionStaff', align: 'center', width: 130 },
  { title: t('other.inspectionType'), dataIndex: 'inspectionType', key: 'inspectionType', align: 'center', width: 130 },
  { title: t('other.stateChange'), dataIndex: 'statusChange', key: 'statusChange', align: 'center', width: 130 },
  { title: t('other.reworkNumber'), dataIndex: 'reworkNum', key: 'reworkNum', align: 'center', width: 130 }
]